﻿using System;
using KJFramework.Platform.Deploy.Metadata.Enums;
using KJFramework.Platform.Deploy.SMC.Contracts;
using KJFramework.ServiceModel.Callbacks;
using KJFramework.ServiceModel.Clients;
using KJFramework.ServiceModel.Elements;
using KJFramework.ServiceModel.Objects;

namespace KJFramework.Platform.Deploy.SMC.Test.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            ClientBase<IServiceControllerContract> proxy = new ClientBase<IServiceControllerContract>(new TcpBinding(new TcpUri("tcp://localhost:9981/ServiceController")));
            RequestingCenter.Instance.AddDelegate("CloseAsync", delegate(bool isComplated, object[] parameters)
            {
                if (isComplated)
                {

                }
            });
            ServiceStatus status = proxy.Channel.Close("ZuneBusEnum");
            Console.ReadLine();
        }
    }
}
